package com.io.reader1;
import java. io. FileWriter ;
import java. io. IOException;
public class Test1 {

	public static void main(String[] args) {
		String str = "Hello ѧʿ��!";
			FileWriter fw = null;
			try {
					fw = new FileWriter("D:\\Ϊ�½��޻�����.txt");
					fw. write(str) ;
			} catch (IOException e) {
				e. printStackTrace() ;
			}
			
			
			
			String str1 ="�ļ�д����ϰ";
			FileWriter fw1=null;
			//1
			try {
			fw1 = new FileWriter("D:/text2.txt");
			//2
			fw1.write(str1) ;
			//3
			}
			catch
			(IOException e) {
			//4
			e. printStackTrace() ;
			} finally {
			//�˴�ʡ�Թر���
			}
	}
	
	

}
